cmake_minimum_required(VERSION 3.16)
project(OrigamiMeshMaker LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt6 REQUIRED
    COMPONENTS
        Core
        Gui
        Widgets
)
qt_standard_project_setup()

set(PROJECT_SOURCES
    main.cpp
    #DefaultUI.ui
)

qt_add_executable(OrigamiMeshMaker ${PROJECT_SOURCES})

target_link_libraries(OrigamiMeshMaker
    PUBLIC
        Qt6::Core
        Qt6::Gui
        Qt6::Widgets 
)

target_link_libraries(OrigamiMeshMaker
    PRIVATE
        WindowsSystem
)

target_link_directories(OrigamiMeshMaker
    PUBLIC
        ${CMAKE_CURRENT_SOURCE_DIR}/build/WindowsSystem
)

set(ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(WindowsSystem)